#include "IDT.h"

void WriteIDT(unsigned char * p,unsigned char ucData)
{  
 * p = ucData;
}

unsigned char ReadIDT(unsigned char * p)
{unsigned char count;
 count = *p;
 return(count); 
}

void WriteRAM(unsigned int adres,unsigned char idat)
{
 WriteIDT((unsigned char *)(IDTadr+adres),idat); 
}

unsigned char ReadRAM(unsigned int adres)
{unsigned char num;
  num=ReadIDT((unsigned char *)(IDTadr+adres));
  return(num);
}
